<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <base th:href="@{/}">
</head>
<body>
    <h1>Hello SpringMVC~~~ 测试中文~~~</h1>
    <hr>

    requestData: <span th:text="${req}"></span> <br>
    sessionData: <span th:text="${#session.getAttribute('ses')}"></span> <br>
    sessionData: <span th:text="${session.ses}"></span>

    <hr>
    <form th:action="@{/param/save/student}" method="post">
        学生名: <input type="text" name="name"> <br>
        家庭住址:
        省份:
        <select name="address.province">
            <option value="北京">北京</option>
            <option value="上海">上海</option>
            <option value="天津">天津</option>
        </select>
        城市:
        <select name="address.city">
            <option value="北京">北京</option>
            <option value="上海">上海</option>
            <option value="天津">天津</option>
        </select> <br>
        学校: <br>
        小学:
            <input type="text" name="schools[0].name" placeholder="小学名称">
            <input type="text" name="schools[0].location" placeholder="小学地址">
        <br>
        中学:
            <input type="text" name="schools[1].name" placeholder="小学名称">
            <input type="text" name="schools[1].location" placeholder="小学地址">
        <br>
        高中:
            <input type="text" name="schools[2].name" placeholder="小学名称">
            <input type="text" name="schools[2].location" placeholder="小学地址">
        <br>
        大学:
            <input type="text" name="schools[2].name" placeholder="小学名称">
            <input type="text" name="schools[2].location" placeholder="小学地址">
        <br>
        学科分数: <br>
            java 分数: <input type="text" name="scores['java']">
            h5 分数: <input type="text" name="scores['php']">
            php 分数: <input type="text" name="scores['python']">
        <br>
        <input type="submit" value="提交">

    </form>

</body>
</html>